sum of digits

sum of digits for given num