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: 4, 10, ['D', '1581', 'p', '7689', 't', '7489', 'h', '781', 'B', 'n', 'g']

n, B, 781, h, 7489, t, 7689