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: 8, 15, ['Y', 'a', '9031', 'X', 't', '3655', 'k', '4947', '2015', '755', 'J', '2975', '5991', '3321', '7117', '3699', '585', '5023', 't', '5573', 'y', 'o', '3453', '1461', '6157', 'm', '7333', 'Y', 'k']

4947, 2015, 755, J, 2975, 5991, 3321, 7117