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: 16, 19, ['N', 'C', 'g', '2823', '2273', 'N', 'W', '5177', '7789', '3559', 'O', '3495', '2883', '2275', '2599', '3919', 'x', 'N', '2923', '6145', '7331', '1861', 'X', '6043', '4111', 'P']

3919, x, N, 2923