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: 7, 21, ['D', '1873', '5769', 'L', 'D', '2997', '7269', 'X', '6629', '9167', '7861', '8763', 'r', '4253', '4559', '563', 'B', 'S', 'v', 'n', 'S', '2849', 'f', '9301', '8673']

S, n, v, S, B, 563, 4559, 4253, r, 8763, 7861, 9167, 6629, X, 7269