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: 4, 18, ['Z', '8771', '3799', '9627', 'f', 'v', '1589', 'e', '7775', 'h', 'F', '6969', 'g', 'p', '4679', '3837', '4931', 'A', '123', '215', 'f', 'w', '7923', '1113', '7743', 'a', '4087', 'x', 'n']

9627, f, v, 1589, e, 7775, h, F, 6969, g, p, 4679, 3837, 4931, A