Pergunta de entrevista da empresa Microsoft

Questions were easy.