Reddit Interview Question

Transforming a flat data structure to a tree. Building a web form and dynamic table with vanilla JS.