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: 6, 17, ['5789', '2221', '8543', 'E', '3363', 'Y', '7465', '2087', '1445', 'j', 'b', 'P', '6201', '1087', '1207', '2899', '4307', '9593', 'k', '9625', '4605', 'c', '5819', 'R', 'q', '6263', 'q']

Y, 7465, 2087, 1445, j, b, P, 6201, 1087, 1207, 2899, 4307