Uber Interview Question

Construct a QuadTree from 2-dimensional array