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: 21, 27, ['1839', 'W', 'E', '7659', '2165', 'i', '1661', 'N', '545', 'n', '5911', 'z', 't', '9771', '6535', '571', 'M', '4457', '87', '1207', '5995', 'D', 'W', '1457', 'C', 'B', '1073', 'p', '4513']

5995, D, W, 1457, C, B, 1073