TikTok Interview Question

Number of Islands problem (BFS)