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, ['2533', '9401', 'y', '2241', 'z', '4083', '8809', 'D', 'Y', 'L', '2719', 'J', 'a', '4339', 'p', '8325', '9755', 'e', 'U', '9279', 'g', 'U', 'q']

e, U, 9279, g, U