Amazon interview question

More on SQL and Python