Definition: In this task, you are given inputs i,j, and A, where i and j are integers and A is a list. You need to concatenate all elements of A from the ith element to the jth element, and print the resultant string. i and j will be non-negative, and will always have a value less than the length of A. i will always be less than j.
Input: 7, 22, ['H', 'Z', 'O', '5259', 'q', '5551', '9753', '8289', 'Z', '2989', 'M', '811', '8613', 'r', '1029', '8831', 'u', 'g', '2297', 'B', '9487', 'Q', 'b', '7161', 'I', 'p', '3867']

97538289Z2989M8118613r10298831ug2297B9487Q