Pergunta de entrevista da empresa Microsoft

Puzzles , it was a long time back