Compass Interview Question

question on the tree, graph, and system design.