Question d’entretien chez Microsoft

A algorithm problem with O(1) space.