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 in the reverse order. 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, 17, ['N', '5455', 's', 'M', '5699', '5427', 'n', '1683', 'a', '2955', 'O', 'r', 'p', '8401', 'N', '7337', 'q', 'q', '9929', '8861', '2707']

q, 7337, N, 8401, p, r, O, 2955, a, 1683, n, 5427