You are given an integer n (it may be negative).
Return the sum of its decimal digits. Ignore the sign, so work with the absolute value of n. For example, the digits of 456 sum to 4 + 5 + 6 = 15.
The result must be a non-negative integer.
NOTE: This is a function-type question — you only write the function. Do not read input or print anything; a hidden checker calls your function and checks its return value.
Arguments
123
Returns
6