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: 20, 24, ['2747', 'H', '3729', '1181', 'T', 'k', '9655', 'W', 'm', 'Z', 'm', '517', '2853', '2025', 'b', 'h', 'q', 'm', '1627', '6997', '3277', '5371', '597', 'c']

c, 597, 5371, 3277, 6997