Droom interview question

Mysql self join query