Amazon interview question

Direct into LP questions from start.