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: 17, 22, ['3187', 'B', '1623', 's', '6367', 'H', '9021', '3421', '2169', 'm', 'C', 'Z', '4983', 'J', '7357', '4801', '7325', '7635', 'G', 'i', 'Y', 'G', '4925', '115', 'M', 'E']

7325, 7635, G, i, Y, G