Build Nested Comments from Parent References
Company: Bobyard
Role: Software Engineer
Category: Software Engineering Fundamentals
Difficulty: medium
Interview Round: Technical Screen
Overview: Transform flat comments with parent IDs into a validated nested forest, even when children arrive before parents. Build an ID index, detect missing links and cycles, preserve sibling order, and plan for deep or incremental threads.