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, 7, ['3595', 'w', 'z', '8307', '999', 'O', '7119', 'c', 'n', '6893', '9107', 'T', 'Q', 'u', '1565', '1029', 'j', 'b', 'Y', '4761', '9371', 'B', '4413', 's', 'O', '6293', '2861', 'w', '5361']

8307, 999, O, 7119