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: 6, 19, ['X', 'y', '1289', '1937', 't', '5235', '8773', 'C', '4587', 'X', 'j', 'g', 'V', '8587', 'x', '8155', 'p', '3615', '5987', '6941']

52358773C4587XjgV8587x8155p36155987