PreOrder Traversal Non-Recursive

Wrote iterative function to perform preorder traversal of a BST