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: 6, 16, ['9967', '2959', 'U', '75', 'd', 'f', 'p', '1077', '4017', 'r', 'Z', '1469', '3795', '8497', '2769', '7569', 'r', '1323', '4505', '6989', '7765', '7523', 'O']

fp10774017rZ14693795849727697569