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: 18, 23, ['6399', 'J', 'T', 'R', '6861', 'e', '1375', 'm', '3121', 'X', '6943', 'i', '5781', 'G', '9833', 'l', '7137', '1809', '5817', '2351', '2391', 'm', 'g', '2095', 'e', '5213', '4889', 'l', 't', 'e']

1809, 5817, 2351, 2391, m, g