Tiancheng Lou's submission of Minimize Digitsum | CodeChef