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, 18, ['6587', '5383', '8357', '9737', '4135', '2167', '3505', '27', '5363', 'S', 'A', '9769', 'M', '743', '6171', '1961', '2889', 'J', '9561', '5117', 'A']

J, 2889, 1961, 6171, 743, M, 9769, A, S, 5363, 27, 3505, 2167