Zebra Technologies Interview Question

Explain with python code in front of you what is the expected output of a recursive routine which explores a tree