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: 22, 23, ['8843', '927', 'm', 'W', '7845', '1397', 'f', '7295', '7503', '6949', '9201', '3629', 'p', 'c', 'T', 'M', '7777', 'M', '3097', 'J', '1559', '287', '5365', 'l', '2975', 'E', '3959', '4083', '1247']

287, 5365