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: 16, 19, ['5881', '5921', '1471', '2665', '3691', '9321', 'u', 'p', '1631', '889', 'L', 'U', '1441', 'r', '4163', '2781', 'P', '8797', 'k', '2565', '8349', '147']

2781, P, 8797, k