TomTom interview question

SQL queries on Inner Join