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: 14, 22, ['7239', '2927', 'i', '7531', '2611', 'j', '4903', '3903', '1975', '2363', 'X', 'S', '8377', 'Y', '8163', 'c', 'T', '2733', '365', '2305', '7927', 'D', '4275', '8509', '7045', 'I', '5045', 'E', 'A', '1875']

Y, 8163, c, T, 2733, 365, 2305, 7927, D