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: 4, 20, ['E', '3173', '9731', 'r', 'a', '6447', '1185', '1827', '6859', 'v', '2725', 'F', 'X', '773', '5075', 'O', '2649', 'u', 'q', '7805', '9487', '9871', 'g']

r, a, 6447, 1185, 1827, 6859, v, 2725, F, X, 773, 5075, O, 2649, u, q, 7805