Pergunta de entrevista da empresa Microsoft

As usual programming questions.