input: Write a python function to traverse a nested array and print each element.
  assert traverse_array([[1,2], [3,4], [5,6]]) == None  # Expected output: 1 2 3 4 5 6
  assert traverse_array([(1,2), (3,4), (5,6)]) == None  # Expected output: 1 2 3 4 5 6
  assert traverse_array([[1, [2, 3]], [4, [5, 6]], [7, 8, 9]]) == None  # Expected output: 1 2 3 4 5 6 7 8 9
output: def traverse_array(nested_array):
      def traverse(element):
          if isinstance(element, (list, tuple)):
              for item in element:
                  traverse(item)
          else:
              print(element)
  
      traverse(nested_array)