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: 2, 12, ['m', 'd', 'P', '7031', 'e', 'W', '7051', '651', '79', '2789', 'N', 'U', 'U', 'D', '3525', '3563', '5159', '3117', 'w', 'Z', '6221']

U, N, 2789, 79, 651, 7051, W, e, 7031, P, d