Pergunta de entrevista da empresa Microsoft

Standard algorithm based questions.