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: 2, 18, ['T', 'z', '6027', 'Z', 'I', '561', 'E', 'O', 'b', '3397', '5283', 'Q', '3151', '9615', 'Z', 'L', 'j', '1245', 'u', 'u', 'j', '8915', 'k', 'V', 'g', '2793', '4867', 'o', '8251']

z, 6027, Z, I, 561, E, O, b, 3397, 5283, Q, 3151, 9615, Z, L, j, 1245