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