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: 2, 17, ['n', 'u', 'Q', '5035', 'j', '2195', 'I', '8761', '6421', '9851', '1669', '177', 'p', '1721', '5971', '4121', 'q', '8041']

uQ5035j2195I8761642198511669177p172159714121q