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, ['m', '2063', 'm', '1781', '7809', 'D', '7717', '2473', 'H', 'H', '8019', 'l', '6797', '4321', '8217', 'O', 'M', 'Z', '4495', '1271', '3617', 'Y', '8651', '9401', 'V']

4321, 8217, O, M, Z