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', 'g', '1883', '6987', 'z', 'P', 'S', 'i', '1751', '447', '8539', '8453', '2705', 'z', '9103', 'n', '8357', 'K', 'f', 't']

g18836987zPSi1751447853984532705z9103n8357K