Frage im Vorstellungsgespräch bei Google

Simple starter but increases difficulty in improving an algorithm