Solve BFS grid delivery routing | DoorDash Interview Question