Techinfini interview question

SQL queries