i2Nexus interview question

OOPS concept, SQL queries