Nuro Interview Question

Some coding about mapping a 2D grid