Nisarg Shah's submission of Minimize Digitsum | CodeChef