Modifiled SumDigit.c