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: 14, 18, ['G', '821', 'T', '3739', 'R', 'd', '7475', '4619', 'q', 'J', '3545', 'm', 'c', '7187', '7875', '2169', 'U', '5731', 'F', '5051', '5287', 'Y', '1323', '3555', '1805', '3859']

7187, 7875, 2169, U, 5731