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.

1, 1, ['p', 'A']
p

2, 3, ['2467', '3123', '973', 'T']
3123, 973

20, 22, ['6147', '1769', '5933', '8041', 'r', 'e', 'G', 'F', 't', '887', 'c', 'W', '5581', '3559', '5103', '5395', '1923', 'E', '3367', 'e', '1839', '6885', '8605', '7789', '5457', 'P', 'M']

e, 1839, 6885