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: 2, 15, ['711', 'P', 'z', 'y', '4783', '6989', '931', '2561', '6049', '4101', 'J', '5985', 'S', '7001', 'd', 'q', 'e', 'n', 'O', '2653', 'N', '1679', 'Z']

P, z, y, 4783, 6989, 931, 2561, 6049, 4101, J, 5985, S, 7001, d