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: 12, 16, ['D', '225', 'r', '5127', '4675', 'K', 'M', 'F', '9241', 's', 'o', '4795', '8127', '1395', '617', '1339', 'L', '2471', '4177', '5943', '2443', 'K', '3693', 'U', 'c', 'a', '1585']

4795, 8127, 1395, 617, 1339