Thrillophilia interview question

SQL queries