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, 22, ['7275', '6261', '7861', 'Y', 's', '3005', '4955', '8947', '4745', 'Y', '809', 'j', '5963', '6585', 't', 'D', '7181', 'Q', '109', 'R', 'P', '4013', '5561', 'M', '3955', '2089', '7127', '3047']

Y, s, 3005, 4955, 8947, 4745, Y, 809, j, 5963, 6585, t, D, 7181, Q, 109, R, P, 4013