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: 16, 17, ['e', '6773', 'w', '5865', 'e', '4317', 'O', 's', 'J', 'Z', 'y', 'u', '1549', '1403', '7343', 'p', 'g', 'a', 'K', 'R', '6301', 'X', '4473', '4989', '4359', 'A', '5225', '7039', 'T']

p, g