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: 17, 21, ['4191', '5641', '1503', '8961', 'j', '4379', 'g', 'h', 'g', '1815', 'Q', '9439', 'j', 'H', '5199', 's', 'X', '8985', 'H', 'Z', 'M', '3393', '8835', 'N', 'q', '5207', 'm', '875', 'I']

X8985HZM