Pregunta de entrevista de Microsoft

The programming question because time was running out.