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, 16, ['2987', 'B', '2475', '6271', '6337', 'k', 'v', 'R', 'o', '2199', 'Y', 'u', '2017', '7329', 'w', '3193', '5721', '4341', 'v', 'h', 'S', '8587', '1203', 'X', 'K', 'M', '4315', '7379']

B, 2475, 6271, 6337, k, v, R, o, 2199, Y, u, 2017, 7329, w, 3193