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: 16, 20, ['5631', '2125', '6867', '965', '5023', 'K', '2923', 'K', 'T', '4203', 'O', '1177', 'z', '8807', 'h', '9487', '6961', '3995', 'g', '9265', '4565', '8367', '7457', 'q']

9487, 6961, 3995, g, 9265