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: 4, 17, ['s', '7247', 'S', 'c', '6701', '8819', '2781', 'j', '2051', 'd', '1363', '6631', 'N', '1017', 'Z', '9997', 'Y', '7873', 's', '8371', '2299', 'J']

c670188192781j2051d13636631N1017Z9997Y