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: 18, 22, ['i', '5765', '1011', 'K', 'b', 'J', 'U', 'D', 'K', 'H', 'T', '6501', '1085', '4865', 'U', '5521', 'n', '7079', '835', 'E', '8761', 'r', 'D', 'P', 'A']

7079, 835, E, 8761, r