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, 24, ['7453', '5511', 'u', 't', '1967', 'r', 'X', 'n', '3797', '2533', '1777', 'N', 'z', 'K', '3509', 'B', 'b', 'o', 'G', '8661', 'j', '5791', 'A', 'p', 'R', '4865', '4981']

p, A, 5791, j, 8661, G, o, b, B, 3509, K, z, N, 1777, 2533, 3797, n, X, r, 1967, t, u, 5511, 7453