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: 6, 17, ['8747', '4949', 'R', 'k', 'h', 'z', '1847', 'p', 'K', 'P', '6043', 'r', '6809', 'K', '6295', 'X', '5671', '7689', '2791', 'B', '3483', '7207', '4991', 'p', '1347', '351', '319', '993']

5671, X, 6295, K, 6809, r, 6043, P, K, p, 1847, z