input: Write a python function to replace each odd element with the product of its previous and next neighbors.
  assert neighbor_product([1, 3, 5, 7, 9, 11, 13]) == [1, 3, 5, 7, 63, 11, 13]
  assert neighbor_product([2, 4, 6, 8, 10, 12, 14]) == [2, 4, 6, 8, 10, 12, 14]
  assert neighbor_product([3, 5, 7, 9, 11]) == [3, 15, 7, 9, 11]
output: def neighbor_product(lst):
      result = lst[:]
      for i in range(1, len(lst) - 1):
          if lst[i] % 2 != 0:
              result[i] = lst[i - 1] * lst[i + 1]
      return result