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: 12, 20, ['3271', 'W', '3233', '5239', 'I', '2249', '605', 'h', '2731', 'w', 'r', 'K', 'Z', '5777', 'z', '1583', 'b', '6947', 'Q', 'm', '3249', '7899', '1351', '457', '467', '9647', '7891', '1029', '9235', 'c']

KZ5777z1583b6947Qm