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, 8, ['1165', 's', '2945', '1385', '8799', 'F', 'p', '4257', '2063', 'v', '4587', 'B', '119', 'I', 'h', 'E', '7595', 'D', '9249', '2653', 'i', '4157', 'Y', 'W', '3827', 'n']

1165s294513858799Fp4257