Preorder traversal iterative solution.
Ignore bin folder.