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: 6, 21, ['1249', 'G', '7209', 'Y', 'E', 'Y', '8699', 'c', '2615', '725', '6213', '9961', 'M', '945', '1635', 'E', '7813', 'M', '1165', '7341', '1029', '7465', 'E', 'I', '5983']

Y, 8699, c, 2615, 725, 6213, 9961, M, 945, 1635, E, 7813, M, 1165, 7341, 1029