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, 18, ['a', '3361', 'f', '6043', '6401', 'P', 'P', '1381', 'e', '3393', '1573', 'r', '9743', '8981', 'x', 'L', '8735', '7207', '4601', '2565', 'j', '7509', 'I', '2299', 'S', 'r']

8735, 7207