ExtraaEdge interview question

SQL Queries regarding data base