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: 9, 18, ['W', 'D', 'n', 'c', 'P', '6133', '4621', '4761', '5203', 'B', '8805', '3907', 'N', '9897', 'd', 'D', '9815', 'P', 'x', '3105', '3069', 'S', 'g']

5203B88053907N9897dD9815P