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.

Example Input: 22, 24, ['6361', 'g', '4959', 'g', '8899', '2857', 'W', 'P', '6973', '4647', '2819', 'r', 'L', 'Z', '509', '995', '3181', '9007', '8875', '2493', '1769', 'O', '7767', '3177']
Example Output: O, 7767, 3177

Example Input: 6, 6, ['9949', 'x', 'l', 's', '3385', '2985', '6241', 't', '6507', '1655', 'j', '8677']
Example Output: 2985

Example 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']
Example Output:
287, 5365