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, 22, ['5611', 'w', 'K', '9241', 'Y', '2645', 'S', 'N', 'E', 'H', 's', 'L', '937', 'e', 'F', 'T', 'c', 'N', 'F', 'r', '3891', '4353', '5803', '8089', 'M', '8847', '4525', '3789']

2645, S, N, E, H, s, L, 937, e, F, T, c, N, F, r, 3891, 4353