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: 5, 10, ['h', 'J', 'D', 'r', 'M', '5225', 'p', 'U', 'o', '5193', 'i', 'C', 'R', '301', 'n', '2497', 'q', '3483', 'w', '1369', '7653', 'y', '6225']

M, 5225, p, U, o, 5193