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: 6, 12, ['G', 'f', 'H', 'i', '3147', 'I', 'U', '2507', 'I', '9727', '7689', 'f', 'a', '3447', 'X', 'L', '5981', '2303', 'D', 'B', '4259']

f, 7689, 9727, I, 2507, U, I