input: Write a function to optimize the given Python program by replacing the loop with a more efficient method that prints each element of the list on a new line. The function should take a list of integers as input and return the same list after printing each element with a new line separator.
  assert optimize_program([1, 2, 3, 4, 5, 6])==[1, 2, 3, 4, 5, 6]
  assert optimize_program([10, 20, 30])==[10, 20, 30]
  assert optimize_program([])==[]
  assert optimize_program([5])==[5]
  assert optimize_program([7, 8, 9, 10])==[7, 8, 9, 10]
output: def optimize_program(lst):
      for num in lst:
          print(num)
      return lst