Amazon interview question

Statistics related, python, SQL