Solution for Sum of Digits.