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: 3, 17, ['Z', '3271', '4129', 'c', '2139', '3293', 'U', '7851', 'p', '4589', 'p', 'P', 'z', '1821', '7', 'M', '7027', 'C', 'p', '1991', '8219', 'r']

4129c21393293U7851p4589pPz18217M7027