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, 5, ['1971', '7917', '2433', '5915', 'Q', '1289', '6763', '1691', '4411', 'p', '4499', '2491', 'z', 'b', 'u', '8115', '1961', 'B', 'u', 'Q', '3719']

1971, 7917, 2433, 5915, Q