input: Write a function to delete an element from a list.
  assert deleteElement([1, 2, 3, 4], 3)==[1, 2, 4]
  assert deleteElement([1, 2, 3, 4], 5)==-1
  assert deleteElement([10, 20, 30, 40], 20)==[10, 30, 40]
output: def deleteElement(lst, element):
      if element in lst:
          lst.remove(element)
          return lst
      else:
          return -1