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, 23, ['Y', '8915', '2875', '9821', 'Y', 'G', 'a', 'A', '6533', '9905', '9889', '5897', '3087', 'j', '7553', '2373', '6993', 'C', '4991', '3199', '4313', 'F', '3939', 'O']

Y, 8915, 2875, 9821, Y, G, a, A, 6533, 9905, 9889, 5897, 3087, j, 7553, 2373, 6993, C, 4991, 3199, 4313, F, 3939