Amazon interview question

behavior based