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: 16, 21, ['u', '1699', '4205', 'g', '9145', 'c', 'X', '9399', 'Y', '7175', 'i', '783', '6749', 'k', 'J', '7297', '8871', 'q', 'o', 'l', 'X', '1255', 'I', '4539', '6929', 'b', 'a', '9521', '5633']

72978871qolX