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: 2, 18, ['X', '3125', 'i', 'u', '119', 'c', 'E', '589', '6993', 'R', 'M', 'C', '6047', '6861', 't', '3309', '6645', 'Z', '2533', '6339', '7615', '7773']

3125iu119cE5896993RMC60476861t33096645Z