Amazon Interview Question

Add all digits of a number.