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: 1, 18, ['8499', 'E', 'S', '4417', 'j', 'C', 'o', 'A', 'D', 'n', 'Q', '8583', '857', '2661', '1407', 'I', '6531', '7891', '5123', '1017', '6187', '9209', '7025', '3451', '5891', '7115']

8499, E, S, 4417, j, C, o, A, D, n, Q, 8583, 857, 2661, 1407, I, 6531, 7891