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, 23, ['6295', 'k', 'P', '2745', 'Z', 'B', 'U', '671', '5161', 't', 'X', 'V', 'W', '6263', '1937', '1671', 'O', 'q', 'p', '301', 'a', 'N', '2017', 'p', 'W']

Oqp301aN2017