Mapline interview question

SQL queries