Bentley Systems Interview Question

How to loop through a tree with and without using recursion (not an option, had to do both)