Ishan Trivedi 's submission of Minimize Digitsum | CodeChef