TomTom Interview Question

SQL queries on Inner Join