TikTok interview question

A bfs grid island algorithm question