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: 6, 7, ['n', '2267', '3855', 'z', 'J', '6573', 'B', '8139', 'm', 'W', 'h', '5877', 'A', '3577', 'w', '8067', 'm', 'm', '3229', '4649', '4171', 'n', '6695']

6573, B