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: 2, 13, ['M', 'H', 'O', '2421', 'g', 'c', '3513', '4417', '2031', '7535', 'l', '4445', '8199', 'c', '6563', '8429', '8957', 'O', 'x', 'x', '5597', 'X', 'd', 'Z', '3177']

H, O, 2421, g, c, 3513, 4417, 2031, 7535, l, 4445, 8199