input: Write a python function to reverse a list and print each element.
  assert reverse_and_print([1, 2, 3, 4, 5])==[5, 4, 3, 2, 1]
  assert reverse_and_print([10, 20, 30])==[30, 20, 10]
  assert reverse_and_print([5, 7, 9, 1])==[1, 9, 7, 5]
output: def reverse_and_print(lst):
      reversed_lst = lst[::-1]
      for elem in reversed_lst:
          print(elem)
      return reversed_lst