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: 8, 22, ['T', '7539', '7817', '869', 'H', '9853', 'D', '6777', '5939', 'j', '887', '5779', '2049', 'O', '695', '6255', '5299', '131', '9465', '4577', 'i', 'N', '6883']

6777, 5939, j, 887, 5779, 2049, O, 695, 6255, 5299, 131, 9465, 4577, i, N