input: Write a python function to calculate the element-wise sum of a list using a passed function.
  assert element_wise_sum(lambda x: x*2, [1, 2, 3, 4]) == 20
  assert element_wise_sum(lambda x: x**2, [1, 2, 3, 4]) == 30
  assert element_wise_sum(lambda x: x-1, [1, 2, 3, 4]) == 6
output: def element_wise_sum(func, lst):
      return sum(func(x) for x in lst)