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, ['F', '5087', 'C', '2371', '9045', 'u', '795', '8569', 't', 'C', 'w', 'Y', 'D', 'X', 'K', '8751', 'a', 'c', 'a', '627', 't', 'C', '7739', 'J', '2023', 'u', '5509', 'Z', '3415', '8355']

5087, C, 2371, 9045, u, 795, 8569, t, C, w, Y, D, X, K, 8751, a, c