Rocket Lab interview question

Coading project for tree structure