Applied Intuition interview question

Mine Sweeper algorithm and infra design