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, 6, ['H', 'c', '8581', '5543', 'J', 'p', '7063', 'H', 'q', 'R', '7433', 'S', '2147', '9677', 'B', '1093', 'n', '3541', 'K', '2389', 'Y', '5709', 'W', '7047', '2473', 'l', 'D', '8551', '4055', '9335']

H, c, 8581, 5543, J, p