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, 18, ['7447', 'Z', '2627', 'i', '4463', '2225', '8777', 'g', 'b', '2191', 'A', 'j', '5669', 'R', '7529', 'G', 'C', 'q', 'N', '389', '9847', '3393', 'X', 'F', '4949', 'k', '1563', 't', 'G']

2225, 8777, g, b, 2191, A, j, 5669, R, 7529, G, C, q