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: 6, 22, ['4789', 'T', '4337', '5093', 'p', '5011', '1061', '4073', 'U', 'Q', 'M', 'Y', 'k', '1139', 'v', '647', '4617', 'w', '5671', '7359', 'j', '2639', '6527', '911', 'D', '1865']

5011, 1061, 4073, U, Q, M, Y, k, 1139, v, 647, 4617, w, 5671, 7359, j, 2639