Pregunta de entrevista de Microsoft

Basic algorithm and data structure questions.