input: Write a python function to apply a given function to each element in a list.
  assert applyFunc([1, 2, 3, 4, 5], square) == [1, 4, 9, 16, 25]
  assert applyFunc([0, -1, -2, -3], square) == [0, 1, 4, 9]
  assert applyFunc([2, 4, 6], square) == [4, 16, 36]
output: def applyFunc(lst, func):
      return [func(x) for x in lst]
  
  def square(x):
      return x * x