Avish Kaushik's submission of Minimize Digitsum | CodeChef