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: 7, 16, ['I', '2227', '6499', 'I', '9721', 'b', '9571', 'B', '517', '1463', '3181', 's', 'X', '1567', 'b', 'M', 'W', '499', '4871', '3405', '5985']

9571, B, 517, 1463, 3181, s, X, 1567, b, M