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.

1, 3, ['J', 'q', 'g', '4661']
g, q, J

2, 4, ['4745', 'K', '6647', 'P']
P, 6647, K

9, 18, ['9379', '5669', 'q', '6391', '2139', 'r', '7761', '977', 't', 'r', '1633', 'l', '7245', 'h', '1595', 'e', '8231', 's']

s, 8231, e, 1595, h, 7245, l, 1633, r, t