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, 22, ['8265', 'L', '1179', '8427', '3517', '7767', '5983', '4677', 'C', 'l', 'B', '7837', '3811', 'G', 'G', '2341', 'h', '6253', '9199', '1285', '2989', 'g', '9403', 'D']

4677, C, l, B, 7837, 3811, G, G, 2341, h, 6253, 9199, 1285, 2989, g