Frage im Vorstellungsgespräch bei Microsoft

A typical coding-style problem that tests your logical and coding ability.