Write digit_sum(n) returning the sum of the digits of a non-negative integer.
digit_sum(n)
digit_sum(1234) → 10
digit_sum(0) → 0
Submit runs 5 tests, including hidden edge cases.
Run your code to see the output here.