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: 7, 14, ['6487', 'J', '7445', '4113', '9903', '5627', 'k', '9141', 'g', 'm', '49', '8873', 'Q', '3961', 'Q', 'D', 'A', '2295', 'Y', 'K', '2923', '9327']

k9141gm498873Q3961