Thoughtworks Interview Question

designing code for minesweeper