DoorDash interview question

Find each cell's nearest source in a grid