Pergunta de entrevista da empresa Microsoft

Case question about birds and islands