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: 17, 22, ['g', 'G', '6813', 'I', 'R', 'W', 'k', '2341', 's', '8223', '6989', 'D', '9631', '8385', '9387', 'U', '3789', '8651', '4375', 'a', 'l', '6213', 'X', '8539', 'D', '2113', '7865', 'G']

6213, l, a, 4375, 8651, 3789