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: 5, 13, ['n', 'S', '5531', '6059', '245', 'l', '7847', '2531', '383', '7505', '6329', 'R', '5217', 'p', 'g', 'j', 'S', '801', '7239', '7563', '7499', 'H', '1989', '3519']

245l7847253138375056329R5217