Ping Identity Interview Question

Tree traversal