Find sum of all digits in a number | Basic Math algorithm