Frage im Vorstellungsgespräch bei Anonymous

Programming problem solved at home and extensively discussed during technical interview.