54. Minesweeper: NaN on Mines

Medium

Given the Minesweeper df (with mine and adjacent columns), set adjacent to NaN for every row that contains a mine. Return the DataFrame.

Sample data: df:

   x  y  mine  adjacent
0  0  0     0         1
1  0  1     1         2
2  1  0     0         3
3  1  1     1         1
Implement solve(...)