Intuit Interview Question

Tree traversal Class design