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: 16, 23, ['5147', 'j', 'l', 'o', '6205', '6709', '4495', '5883', '6217', '1467', '8107', '1361', '9693', 'n', 'F', '8291', '7139', 'd', '785', '3', '9789', '9459', '9225', 'Y']

8291, 7139, d, 785, 3, 9789, 9459, 9225