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: 18, 19, ['7961', 'a', '8477', '8587', '3709', 'T', '3979', '1805', 'J', 'i', '4961', 'q', 'i', '1947', 't', 'X', '9037', 'X', '873', 'a', '7359', '47', '8489', 'A', '697', '1947', 'J', 'V', 'V', 'P']

X, 873