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: 8, 18, ['1423', '8463', '4787', '7545', 'q', '6301', 'o', '5401', 'h', '5677', 'U', 'G', '4319', '4385', '6041', '9683', '9699', 'E', '4989', 'g', 'R']

5401, h, 5677, U, G, 4319, 4385, 6041, 9683, 9699, E