PYTHON
Solution must be recrusive. You are not allowed to use loops, or use the python "in" operator.
Write a function which returns the sum of squares of the integers 1 to n. For example, the sum of the sqaures from 1 to 4 is 1 + 4 + 9 + 16 or 30. You may choose what should be returned if n == 0.
Cannot use the built-in python sum function
>>> sum_of_squares(1)
1
>>> sum_of_squares(4)
30
>>> sum_of_squares(8)
17650828