ECI Interview Question

Design the logic for minesweeper