aman agarwal's submission of Minimize Digitsum | CodeChef