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 concatenate all elements of A from the ith element to the jth element, and print the resultant string. 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: 9, 13, ['Y', 'c', 'W', '1199', '7407', 'q', 'J', 'r', '7869', 'L', '5895', 'P', '6569', 'A', 'j', '9839', 'R', '787', '9033', '5459']

7869L5895P6569