Pergunta de entrevista da empresa Microsoft

Typical programming questions, (math-oriented).