Zhang Yide's submission of Minimum Sum | CodeChef