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, 10, ['6975', 'o', '4951', '9775', 'c', '2807', 'W', '2465', '509', '8505', 'o', '6939', '4501', 'q', '3407', 'm', '365', 'r', '8749', '941', '9161', '9107', '6707', '1075', 'Q', '2587', '5129']

9775c2807W24655098505