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: 4, 19, ['e', '7769', 'u', 'j', 'r', '3965', 'o', '8747', '5837', 'b', 'p', '1395', '9213', '1021', 'W', '2721', 'Q', 'B', 'u', 'e', '7039', 'g', 'L', 'S']
Output:
jr3965o87475837bp139592131021W2721QBu