Yext interview question

Graph problem with mines and bombs