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, ['A', 'Y', 'd', '8985', '5993', '7745', '713', 'g', '3265', '6789', '7673', '1495', 'i', '7955', '119', '5247', 'O', '773', 'j', 'M', 'z', 'Q', '7699']

O, 5247, 119, 7955, i, 1495, 7673, 6789, 3265, g, 713, 7745