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: 1, 10, ['O', '2991', 'X', '8161', 'P', 'a', 'o', '8115', 'l', '3807', '5771', 'A', 'D', '141', '9389', 'U', '3955', '3939', '1911', 'b', '583', 'z']

O2991X8161Pao8115l3807