Tree Select

Build a tree from slash-delimited paths, replay a sequence of clicks that cascade selection down to descendants and recompute every ancestor, then render the tree with selected, not selected, and partial states.

Asked in Meta frontend interviews