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, 20, ['3517', 'E', '5707', 'h', '7727', '5515', 'z', 'V', '5959', '295', '8281', 's', 'W', 'W', '2709', 'I', '2781', '671', 'o', '4453', '8461', '299', '4891', 'h', 'D', '8045']

671, o, 4453