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.
One example is below.
Q: 1, 3, ['z', 'h', 'Y', 'U', '2799']
A: Y, h, z
Rationale: Here, all the elements between the 1st element and 3rd element in reverse order are 'Y', 'h', and 'z'.
Q: 3, 6, ['4969', '5259', '8401', 's', 'E', '4483', 'k', '3971', '4539', '853', 'k', '9007', 'k']
A:
4483, E, s, 8401