HARMAN interview question

Sql query