input: Write a python function to compute the sum of squares of elements in a list up to each index.
  assert sum_of_squares([1, 2, 3, 4]) == [1, 5, 14, 30]
  assert sum_of_squares([0, 1, 2]) == [0, 1, 5]
  assert sum_of_squares([5, 6]) == [25, 61]
output: def sum_of_squares(lst):
      result = []
      current_sum = 0
      for num in lst:
          current_sum += num ** 2
          result.append(current_sum)
      return result