Bonsai Robotics interview question

How would you build a city grid system in code.