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: 14, 17, ['6787', '4827', '6711', 'g', '6457', '4787', 'M', '3077', '4325', '7927', 'l', '6031', 'D', 'z', 'Q', 'P', '1029', 'U']

1029, P, Q, z