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: 2, 29, ['D', 'q', '6629', '7061', '2109', '8935', '6815', '2437', 'R', 'T', 'e', '8843', 'V', '8395', '5797', '6249', '7585', '1979', 'F', 'P', '9537', '355', '6125', 'g', 'M', '1419', 'V', 'g', '4139']
Output:
q662970612109893568152437RTe8843V83955797624975851979FP95373556125gM1419Vg4139