Objective
Implement a function that returns the sum of every integer from 1 to n by recursion, with the sum for 0 defined as 0.
Steps
$ sum_to_n(5)
15
$ sum_to_n(0)
0
$ sum_to_n(65535)
2147450880
$ sum_to_n(-4)
-1
Expected files
Allowed functions
None. Write every helper yourself.

Objective
Implement a function that returns the sum of every integer from 1 to n by recursion, with the sum for 0 defined as 0.
Steps
$ sum_to_n(5)
15
$ sum_to_n(0)
0
$ sum_to_n(65535)
2147450880
$ sum_to_n(-4)
-1
Expected files
Allowed functions
None. Write every helper yourself.

Tests
Run the tests to grade your code