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