Kestrel interview question

Non recursive tree traversal