Write a function to sum the digits of given number?
Login to Submit
Input: 12 Output: 3 Reason: 1 + 2 = 3 Input: 1123 Output: 7 Reason: 1 + 1 + 2 + 3 = 7