Amazon Lab126 interview question

Nothing unexpected. Normal algorithm and design questions.