Ambesh Tiwari's submission of MinConcats | CodeChef