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, ['p', '2695', '2541', 'R', 'O', '5651', '3871', 'g', '5135', 'd', '5425', '5251', 'f', '9917', 'T', 'g', 'p', 'N', 'J', 'm']

p, g, T, 9917, f, 5251, 5425, d, 5135, g, 3871, 5651