Rocket Lab Interview Question

Coading project for tree structure