YouTube Interview Question

tree traversal