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, 18, ['D', 'o', 'S', '5407', 'c', '8795', '1237', 'r', 'Z', '859', '8345', 'x', 'm', '5105', '8697', 'E', 'a', '4479', 'r', '6969', 'T', 'x', '7235', 'l', '8285', '5563', 'N', 'z', '501', 'p']

4479, a, E, 8697, 5105, m, x, 8345, 859, Z, r, 1237, 8795, c, 5407