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, 20, ['A', 'a', 'O', '4197', '9239', 's', '4507', 'j', '2609', '5637', '2709', 'D', 'E', 'P', 'P', '1777', 'w', 'v', '4027', 'f', '5161']

f, 4027, v, w, 1777, P, P, E, D, 2709, 5637, 2609, j, 4507, s, 9239