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: 1, 23, ['1849', 'a', 'n', '4507', '5711', 'i', 'L', '8363', 'x', '6295', 'm', 'C', '7889', '8223', 'O', '8931', 'x', '997', 'p', '2749', '7229', '6297', 'a', 'Q', 'H', 'i', 'z', '8629']

a, 6297, 7229, 2749, p, 997, x, 8931, O, 8223, 7889, C, m, 6295, x, 8363, L, i, 5711, 4507, n, a, 1849