Katch interview question

SQL Query and Python Data Structures