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: 3, 7, ['Y', 'c', '4145', 't', 's', 'z', 'C', 'a', '8407', 'w', 'T', '2257', '9219', '3685', 'T', '8987', 'a', '5503', '7459', 'l', 'd', 'A', '9851', '6127', '151', '6747', '5321', 'U']

4145, t, s, z, C