Pregunta de entrevista de Microsoft

A algorithm problem with O(1) space.