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: 7, 18, ['8391', '1781', 'l', 'e', '8847', '2461', '383', '3995', '111', '953', 's', '2757', '8051', 'B', '8187', 'x', 'O', 'n', 'K', 'D', '8797', '4893', 'e', '4169', '7629', '2889', '1999', '5121', '4037', 's']

383, 3995, 111, 953, s, 2757, 8051, B, 8187, x, O, n