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: 5, 21, ['5749', 'h', 'a', 'L', 'k', 'm', 'a', '2105', '421', '9389', '8611', 'D', 'L', '8973', '1241', '4971', '8195', '3799', '9681', 'I', '5891', '3099', '989', '7103', '7537', '9355', '257']

k, m, a, 2105, 421, 9389, 8611, D, L, 8973, 1241, 4971, 8195, 3799, 9681, I, 5891