Solutions for sumDigits, and validate