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, ['3837', 'm', '4037', '7651', '8475', 'W', '5403', 'A', 'D', '7073', 'e', '9331', 'H', '1263', '2843', '777', 's', 'p', 'N', '7743', 'Q', 'Q', 'z', '5971', 's']

m403776518475W5403AD7073e9331H12632843777sp