Count islands using BFS without modifying grid | TikTok Interview Question