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: 4, 17, ['1533', 'S', '1835', 'L', 'n', 'O', '6297', 'R', 'X', '5871', '2519', '6827', '5491', '6467', '1077', 'g', 'Z', 's', 'r', 'E', 'i', 'w', '6517']

Z, g, 1077, 6467, 5491, 6827, 2519, 5871, X, R, 6297, O, n, L