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: 1, 9, ['4557', 'O', 'q', '1363', 'J', 'M', 'c', 'e', '2503', '5705', 'n', '4171', 'O', 'E', 'q', 'p', 'T', 'U', '5835', 'Y', '4509']

4557, O, q, 1363, J, M, c, e, 2503