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, 22, ['A', '1351', '8809', '9985', 'N', 'P', 'A', '1829', '1351', 'X', '8299', 'T', '5997', '8667', '4327', '8021', '8671', '2779', '5723', '2041', 'B', '7617', '4345', 'i', 'n', 'a', 'T', '9789', 'u']

PA18291351X8299T59978667432780218671277957232041B7617