input: Write a python function to infer the data type of each element in a list.
  assert infer_data_type([1, 2.0, 'three', 4]) == ['integer', 'float', 'string', 'integer']
  assert infer_data_type([10, 20, 30.5, 'forty']) == ['integer', 'integer', 'float', 'string']
  assert infer_data_type([True, 3.14, 'hello', 7]) == ['string', 'float', 'string', 'integer']
output: def infer_data_type(lst):
      type_mapping = {
          int: 'integer',
          float: 'float',
          str: 'string'
      }
      return [type_mapping[type(element)] for element in lst]