input: Write a function to calculate the sum of squares of all the numbers from 1 to N. If the given N is 0 then return 0.
  assert sum_of_squares(0)==0
  assert sum_of_squares(1)==1
  assert sum_of_squares(2)==5
  assert sum_of_squares(3)==14
  assert sum_of_squares(10)==385
output: def sum_of_squares(N):
      return sum(i**2 for i in range(N+1))