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: 5, 18, ['e', '7729', '515', '7553', 'g', 'n', 'O', '3877', 'Z', 'F', 'W', 'c', '6491', '3711', 'D', '1121', 'b', '4131', '8945']

g, n, O, 3877, Z, F, W, c, 6491, 3711, D, 1121, b, 4131