TikTok interview question

Number of Islands problem (BFS)