NVIDIA interview question

Code a version of minesweeper.