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: 1, 5, ['2861', '3139', 'a', 'Z', '959', '5523', 'u', 'G', 'V', '1741', '3807', 'z', 'K', '5611', '8983', 'X', '8519', '6891', 'n', '7439', 'N', '3019', 'U', '6533', 'G', 'j', 'u', 'a', 'B', '3943']

2861, 3139, a, Z, 959