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: 4, 21, ['A', '9833', '1403', 'Z', '911', 'J', 'I', '7377', 'O', '8963', '987', 'G', '1627', 'B', '5291', 'B', 'i', '6783', 'O', '6135', 'j', '5049', 'r']

Z, 911, J, I, 7377, O, 8963, 987, G, 1627, B, 5291, B, i, 6783, O, 6135, j