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: 19, 29, ['5475', 'P', 'W', 'M', '6073', 'z', 'P', '717', '509', '2701', '3039', 'D', '2207', '8157', 'B', 'R', '3191', 'n', '5021', 'n', '2013', '8543', 'g', '2481', '269', '1731', '9505', 'M', '9197', '3243']

5021n20138543g248126917319505M9197