Amazon interview question

Excel-Test