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.

[Q]: 4, 5, ['Q', 'X', 'T', '5809', '2821', 'y', '1323', '9853']
[A]: 5809, 2821


[Q]: 1, 1, ['p', 'A']
[A]: p


[Q]: 3, 7, ['w', '4259', 'g', 'w', 'L', 'l', 'm']
[A]:
g, w, L, l, m