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: 18, 26, ['s', '1381', 'b', 'l', 'X', '1239', '6097', 's', 'Y', '1991', 'a', '2095', '493', 'm', '1755', '1093', '2433', 'I', '1589', 'Y', 'F', 'd', '8629', '5795', 'w', 'n', '1509', '789']

I, 1589, Y, F, d, 8629, 5795, w, n