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: 5, 18, ['2791', '111', 'g', '3569', '6427', '8123', 'K', 'g', 'B', '5641', '5315', '6275', 'J', '5015', '6243', '8307', 'b', '6933', 'F', '4751', '3581', '1305', '3891', 'R', '3223', '5065', 'O', '1607']

6933, b, 8307, 6243, 5015, J, 6275, 5315, 5641, B, g, K, 8123, 6427