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: 1, 12, ['5871', '8129', '1705', 'M', '6269', '845', '171', '8669', '3763', '6563', 'u', 'W', '5403', 'w', 'U', 'H', 'Y', 'd', 'm', 'B', '9681', '9421']

587181291705M6269845171866937636563uW