Microsoft Interview Question

design minesweeper