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, 8, ['B', '6581', 'q', 'R', '3751', '1779', '4361', 'W', '5657', 'q', '9709', 'v', '623', 'M', '6233', '4503', 'n', '2141', 'n', 'R', 'q', '3967', '7937', 'b', 'v', '5207']

R, 3751, 1779, 4361, W