Objective
Write a recursive function that returns the sum of the decimal digits of n, with the sign dropped so a negative n sums the digits of its magnitude.
Steps
$ digit_sum(7)
7
$ digit_sum(1234)
10
$ digit_sum(0)
0
$ digit_sum(-42)
6
$ digit_sum(INT_MIN)
47
Expected files
Allowed functions
None. Write every helper yourself.

Objective
Write a recursive function that returns the sum of the decimal digits of n, with the sign dropped so a negative n sums the digits of its magnitude.
Steps
$ digit_sum(7)
7
$ digit_sum(1234)
10
$ digit_sum(0)
0
$ digit_sum(-42)
6
$ digit_sum(INT_MIN)
47
Expected files
Allowed functions
None. Write every helper yourself.

Tests
Run the tests to grade your code