input: Write a python function to calculate the sum of squares of numbers from 1 to n.
  assert sum_of_squares(10) == 385
  assert sum_of_squares(5) == 55
  assert sum_of_squares(1) == 1
output: def sum_of_squares(n):
      return sum(i**2 for i in range(1, n+1))