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, 22, ['3549', 'm', 'c', '1151', 'd', '1173', '773', '1787', '4499', '4197', '323', 'C', '8805', 'U', 'P', '5907', 'h', 'G', 'k', '5189', '5615', '2235']

2235, 5615, 5189, k, G, h, 5907, P, U, 8805, C, 323, 4197, 4499, 1787, 773, 1173, d