input: Write a function to calculate the sum of squares of all the numbers from 1 to N. The function should take an integer N as input and return the sum of the squares of all integers from 1 to N. If N is 0, the function should return 0.
  assert sum_of_squares(0)==0
  assert sum_of_squares(1)==1
  assert sum_of_squares(5)==55
  assert sum_of_squares(10)==385
output: def sum_of_squares(N):
      if N == 0:
          return 0
      return sum(i**2 for i in range(1, N+1))