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: 6, 18, ['247', '4801', '8103', 'M', '9137', '4707', 'K', '8513', 'w', 'J', 'u', 'W', 'R', '267', 'P', '2473', '5235', 'a', 'n', 'g', '4053', '1887', 'a']

4707, K, 8513, w, J, u, W, R, 267, P, 2473, 5235, a