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: 6, 21, ['X', 'G', '1985', '2609', 'R', 'H', '1117', '4467', 'A', '891', '2411', 'E', '2683', 'x', '1199', 'l', 'h', 'a', 'n', '1057', 'J', 'c', 'K', '8837', 'K', '8247', 'm', 'R', '6841', 'L']

H11174467A8912411E2683x1199lhan1057J