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: 2, 18, ['561', '5835', 'P', '9933', '3229', 'J', 'O', '2505', 'i', 'H', '5537', '7381', '1501', 'V', 's', '875', 'g', 'd', '2565', '9271', 'O']

5835, P, 9933, 3229, J, O, 2505, i, H, 5537, 7381, 1501, V, s, 875, g, d