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, 18, ['9031', 'x', '2015', 'R', '5879', 'Z', '3555', '5003', '5743', 'G', '4631', '8469', 'S', 'M', 'g', 'y', '1563', 'S', '8491', '3347', '2811', 'q', 'X', 'p', '7545', 'W', '8097', '997']

5879, Z, 3555, 5003, 5743, G, 4631, 8469, S, M, g, y, 1563, S