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, ['x', 'h', 'W', 'D', '3591', '8517', 'H', 'x', '3913', '9119', '5721', 'd', '5979', '1053', '4393', '1055', '9039', '3415', 'E', 'F', 'E', 'R', '2939', 'c', '7473', 'v', 'F', '7833', '8949', 'S']

D, 3591, 8517, H, x, 3913, 9119, 5721, d, 5979, 1053, 4393, 1055, 9039, 3415, E, F, E, R