Question d’entretien chez DoorDash

Find each cell's nearest source in a grid