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, 22, ['8709', '4591', 'x', 'J', 'j', '1355', 'r', 'v', 'W', 'Z', '5605', 'z', '2547', '2927', 'o', 'k', 'f', '7759', 'd', 'X', '6799', 'q', 'j', 'D', '8717', '7953', '4293', 'e', '1695', 'N']

4591, x, J, j, 1355, r, v, W, Z, 5605, z, 2547, 2927, o, k, f, 7759, d, X, 6799, q