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 list all elements of A from the ith element to the jth element. 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: 4, 16, ['2917', '8517', '2889', 'U', 'N', '1649', '6387', 'l', '951', '4835', 'X', 'T', '6669', '2067', 'Y', '3095', '1365', '3631', '4125', '1051', 'x', '5999', '8233', 'y', 'G', 's', '8641', 'I', 's']

U, N, 1649, 6387, l, 951, 4835, X, T, 6669, 2067, Y, 3095