This question evaluates understanding of hierarchical data modeling, REST API design, database schema choices (e.g., adjacency list vs alternatives), and systems-level concerns like scalability, pagination for large subtrees, and cycle prevention.
Design a service to store a hierarchical tree of nodes and expose APIs.
Requirements:
Deliverables: