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: 1, 16, ['2435', '1597', 'W', 'B', 'D', '4791', 'O', '1167', 'm', '2267', '139', 'd', '9913', '6757', '4525', '9171', '327', '9791']

24351597WBD4791O1167m2267139d9913675745259171