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: 18, 21, ['3163', '6745', '3747', 'U', 't', '6967', 'B', '2637', 'E', 'X', '3697', 'K', 'm', '2653', '2929', '2465', '8909', '9865', 'P', 'd', '4739', 'z', '2699', '2469', '4973', 'N', 'e', 'z']

9865, P, d, 4739