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, 8, ['7463', '7589', 'H', '3399', '5989', 'y', '9623', '1031', 'p', '3559', '7613', '7215', '375', '6457', 'E', 's', '4917', '8065', '6481', '1323', 'T', '5985', '7141', '5927', 'z', '835']

7589, H, 3399, 5989, y, 9623, 1031