Aman interview question

SQL database queries and OOPS