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: 18, 23, ['M', 'B', 'p', '8399', 'x', '4483', 's', 'e', '271', 'M', 'G', 'q', '7535', '643', 'B', 'N', '9683', 'G', 'z', '415', 'K', '5163', '5471', 'E', 'U', 'Q', '5681', 'D', 'Z', '3491']

5471, 5163, K, 415, z, G