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: 24, 27, ['p', 'F', '2359', '3589', 'R', '2573', '4121', 'R', 'w', 'g', '263', '9639', '9313', '9139', '6401', '5155', '951', '6049', '5223', 'h', '3911', '7787', 'S', 'y', '2749', '8721', 'j']

y, 2749, 8721, j