Amazon interview question

LP principle question answering in STAR format