find number of digits that changed after addition of 1

Solutions on MaxInterview for find number of digits that changed after addition of 1 by the best coders in the world