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, 8, ['r', 'R', '4023', '9219', '2967', '365', 'i', '2205', '8895', 'r', '3619', 'y', '3431', 'f', '8365', '5789', 'b', 'T', 'i', '7827', '1481', '9191', '6681', 'H', 'd']

2967, 365, i, 2205