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 squares of the numbers in the range from 1 to N inclusive.
  assert sum_of_squares(10) == 385
  assert sum_of_squares(5) == 55
  assert sum_of_squares(1) == 1
  assert sum_of_squares(0) == 0
  
  def sum_of_squares(n):
      result = 0
      for i in range(n+1):
          result += i**2
      return result
output: def sum_of_squares(n):
      result = 0
      for i in range(n+1):
          result += i**2
      return result