Apple interview question

Implement a quadtree