input: Write a function to calculate the sum of the squares of numbers in a given range.
  assert sumOfRanges(10, 20) == 2485
  assert sumOfRanges(1, 5) == 55
  assert sumOfRanges(3, 7) == 135
  assert sumOfRanges(0, 0) == 0
output: def sumOfRanges(start, end):
      return sum(x**2 for x in range(start, end + 1))