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, 18, ['h', '461', 's', '4645', '7223', 'g', 'p', '8439', '9729', 'K', '4883', '5683', '9081', '9561', 'U', 'X', '6871', '5255', 'C', '2107', '1633', 'V', 's', '5685']

g, p, 8439, 9729, K, 4883, 5683, 9081, 9561, U, X, 6871, 5255