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: 5, 9, ['Q', 'S', '1765', 'i', '6415', '6081', 'B', '7687', 'd', '6413', '2505', '5219', '5201', '4155', 'B', '2289', 'G', 'Y', '9623', '549', 'h', '1733', '2491', '1805', 'L', 'L', 'E', 'A', 'L', '6521']

6415, 6081, B, 7687, d