Tiger Analytics interview question

SQL queries, probability, stats, python functions