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. 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: 8, 21, ['2165', '3821', 'w', '9257', '5129', 'k', '8577', '5493', 'z', 'Q', 'G', '6437', '2055', '7059', 'q', '1423', 'a', 'G', '2297', '3859', 'k', 'j', 'm', 'A', '6673', '1583', 'Z']

5493, z, Q, G, 6437, 2055, 7059, q, 1423, a, G, 2297, 3859, k