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: 16, 17, ['n', '1645', 'p', '997', 'w', '5779', 'v', '4087', '7795', '2287', 'p', 's', 'P', 'E', '5169', 'q', 'k', 'J', 'z', '1239', '3305', 'P', '6241', 'O', '1887', 'e', 'c', 'P']

k, q