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: 13, 18, ['5601', '7499', '1997', '8431', '4915', '5781', 'L', '3347', 'x', 'K', 'D', '9407', '5821', 'p', '997', 'I', 'P', '8171', 'i', '8571', '8381', 't', 'T', '2019', '4195', '9845', 'X', '1659', '273']

5821, p, 997, I, P, 8171