Construct Quad Tree

Construct Quad Tree - Coding Problem | K5kC