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: 7, 22, ['z', '6365', '623', 'd', '569', '4199', '6047', '3597', '5', '489', 'a', '7517', '727', '8223', 'o', '651', '445', '3283', 'h', '4721', 'f', '3145', '3521']

6047, 3597, 5, 489, a, 7517, 727, 8223, o, 651, 445, 3283, h, 4721, f, 3145