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, 19, ['L', 'G', 'N', 'K', 'x', 'j', '1541', '599', 'm', '7443', '7587', 'p', 'p', '3433', '9607', '9963', 'K', '1933', '2227', '6975']

K, x, j, 1541, 599, m, 7443, 7587, p, p, 3433, 9607, 9963, K, 1933, 2227