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: 17, 22, ['r', '4997', 'V', '4243', 'C', 'Y', '1573', '1483', '6123', 'g', '1467', 'P', 'K', '3839', 'o', 'S', 'G', '3867', 'j', 'F', 'F', '9381', '6561', '1617', 'E', '3177']

G, 3867, j, F, F, 9381