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: 15, 18, ['t', 'A', '7497', 'z', '8129', '2465', '9235', 'v', '7551', '837', 'l', 'u', '1981', '2031', 'K', 'N', '5299', 'F', '5021', 'M']

K, N, 5299, F