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: 18, 21, ['9651', '1765', 'c', 'd', 'e', 'P', '3913', '313', '851', '8035', '327', '5209', 'U', 'Q', '3655', 'c', '6139', '3867', 'g', '8679', '8241', '6611', 'I', '9819', '9199']

3867, g, 8679, 8241