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: 6, 18, ['v', 'X', '159', 'V', 'b', '595', '2921', 'j', 'd', 'v', 'Q', 'H', '4039', 'X', '8347', 's', '3047', '4067', '3927', 'g', 'G', '627', 'K', '1969', 'A', '4609']

595, 2921, j, d, v, Q, H, 4039, X, 8347, s, 3047, 4067