Nuro interview question

Some coding about mapping a 2D grid