Google interview question

tree traversal using iterative aproach