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: 3, 9, ['Y', 'S', '3801', 'd', 'D', 'M', '8049', '8581', '3477', 'L', 'u', 'V', 'D', 'Q', '1349', 'T', '5821', 'h', '9365', '9167', '9135', 'n', '4589', 'f', 'C', '8661', 'r']

3801dDM804985813477