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, 18, ['9161', 'i', 'P', 'J', '4803', '3023', '7859', '2707', '2279', '1157', 'Z', 'D', '4397', 'F', 'p', '3665', 'r', '5223', 'a', '5091', 'P', '2285', 'm', 'z', '5191', '9045', 'P', '1889', 'y']

5223, r, 3665, p, F, 4397, D, Z, 1157, 2279, 2707, 7859, 3023, 4803, J