Amazon interview question

Business case