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: 21, 24, ['A', '6283', '3533', '4691', 'w', 'm', '2653', '9439', '9371', 'V', 'n', '2821', 'X', 'q', '2659', '1197', 'O', '6121', 'f', '6821', '2391', '7441', '1219', 'F', '835', '7303', 'y', 'P', '5985', 'L']

2391, 7441, 1219, F