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, 24, ['259', '597', 'c', 'l', '1663', 'R', 'L', 'A', 'E', '5267', 'U', '7981', 'P', '8541', 'w', '7605', 'B', '3977', 'y', '7991', 'G', 'k', '5475', '8227', '9797', 'M', '7207', 'T', 'H', '7147']

8227, 5475, k, G, 7991, y, 3977, B