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, 18, ['a', 'U', 'M', 'S', '9097', 'O', '1717', '8911', '8069', '9665', 'c', '3459', 'n', '8407', 'm', '8113', 'z', '8333', '7991', '6739', 'N', 'l', 'q', '2357']

1717891180699665c3459n8407m8113z8333