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: 9, 14, ['M', 'Y', '7781', '273', '5203', 'L', '239', 'd', '6151', '2715', '2689', 'c', '9477', 'R', '1709', '3319', '7259', 'Q', '3695', '5691', 'C']

6151, 2715, 2689, c, 9477, R