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: 2, 21, ['w', 'z', '9841', 'Q', 'e', '3651', '4153', 'w', '4143', 'h', 'Y', '4929', 'B', '407', '191', 'C', '4873', '23', 'z', '1585', '7697', 'Z']

z, 9841, Q, e, 3651, 4153, w, 4143, h, Y, 4929, B, 407, 191, C, 4873, 23, z, 1585, 7697