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: 10, 14, ['2851', 'K', 'N', 'j', 'R', 'r', '7827', 'b', '3423', '3987', 'f', '4535', 'l', '4401', '8411', '1489', '2551', 'U', 'd', 'w', 'p', '9587', 'U', '8369', 'v', '6645', '8977', '939']

3987, f, 4535, l, 4401