Amazon interview question

Excel and SQL