input: Write a python function to calculate the sum of squares of all numbers in a list.
  assert sum_of_squares([1, 2, 3]) == 14
  assert sum_of_squares([0, -1, -2]) == 5
  assert sum_of_squares([4, 5, 6]) == 77
output: def sum_of_squares(numbers):
      return sum(x ** 2 for x in numbers)