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: 7, 18, ['6987', '7049', '4837', '3331', '7229', 't', '263', '1151', '6579', '6643', '2189', '3809', 'h', '631', 'X', '6277', 'Y', 'L']

26311516579664321893809h631X6277YL