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: 6, 21, ['s', 'l', 'l', '3027', '4531', '8757', 's', 'q', '2739', 'G', 'N', 'k', '3439', 't', 'm', 'w', 'B', '7809', 'r', 'a', 'o', '4697', '4171', 't', '8785', 'n', 'R']

8757, s, q, 2739, G, N, k, 3439, t, m, w, B, 7809, r, a, o