Frage im Vorstellungsgespräch bei Amazon Lab126

Nothing unexpected. Normal algorithm and design questions.