Build a Quadtree and Analyze a Graph | Uber Interview Question