Google Interview Question

tree traversal using iterative aproach