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: 5, 24, ['5129', 'W', '7311', '2523', 'N', '4743', '7497', '9097', 'C', '2811', 'f', '8851', 'B', '3837', '7583', 'a', 'G', 'O', 'o', '4287', '5197', 'n', '6039', 'P', 'x', '3341']

P, 6039, n, 5197, 4287, o, O, G, a, 7583, 3837, B, 8851, f, 2811, C, 9097, 7497, 4743, N