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: 6, 14, ['4643', '4885', 'j', 'q', 'W', '3107', '8427', 'B', '6875', '8763', '9023', 'P', 'B', 'P', 'y', '1917', 'u', '869', 'U']

3107, 8427, B, 6875, 8763, 9023, P, B, P