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: 5, 7, ['I', '5439', 'J', '3995', '5349', '5143', '119', '7541', '3985', 'S', '5143', 'b', '5543', 'm', 'L', 'S', '2315', 'a', '3987']

5349, 5143, 119