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: 17, 21, ['y', 'B', 'L', 'J', '2795', '8065', '9523', 'T', '2373', '1361', '8937', '207', '6259', '7637', 'r', '1105', 'D', 'k', 'G', '681', 'C', '5773', '1425', 'w', 'K', '585', 'C', '691', '6725']

D, k, G, 681, C