Searce interview question

Sql queries and dsa problems