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: 4, 6, ['4091', '1151', 'U', '4015', '49', '1655', 'S', 'w', 'D', 'Y', '649', 'I', '3177', '9587', 'Z', '5177', 't', '9663', 'S', '9163', '7559', '3671', 'V', 'M']

4015, 49, 1655