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: 12, 18, ['3959', 'J', 'H', '6661', '3211', '1679', 'f', '7369', '9921', '4975', '9023', '6513', 'w', 'H', '4987', '9039', '2699', '2847', '2857', 'y', '7959', '5627', '5455', '6591']

6513, w, H, 4987, 9039, 2699, 2847