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: 3, 20, ['B', 'E', '581', '5933', '9427', '1867', '947', 'r', '2809', '4905', '1141', 's', 'o', '4741', 'A', '2335', '6103', '9661', 'l', 'a', 'K', 'x', '1125', 'Y']

581, 5933, 9427, 1867, 947, r, 2809, 4905, 1141, s, o, 4741, A, 2335, 6103, 9661, l, a