IXL Learning Interview Question

tree traversal