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, 21, ['9107', '8781', 'd', 'J', '8651', 'h', '9179', 'n', 'l', 'x', '2505', 'i', 'h', 'R', 'm', '6213', '4899', '2943', '3715', '983', '979', 'Y']

979, 983, 3715, 2943, 4899, 6213, m, R, h, i, 2505, x, l, n, 9179, h, 8651