Medium
Recursive Digit Sum
Write a recursive function returning the sum of the digits of a non-negative integer.
Input
One integer ≥ 0.
Output
Digit sum.
Sample 1
Input
12345
Output
15
Sample 2
Input
0
Output
0
Output appears hereOne integer ≥ 0.
Digit sum.
12345
15
0
0
Output appears here