Amazon Interview Question

Tree traversal question