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: 16, 17, ['431', 'i', '889', '6915', '3781', 'w', 'X', '1717', '5259', '5175', '4831', '955', '3657', '2263', '2699', '7959', '5261', '5259', '5405', 'c', '1021', 'g', '8647', 'D', 'P', '9915', '3987', 'O']

7959, 5261