Vivek Gupta's submission of MinConcats | CodeChef