Intersoft Data Labs interview question

Mostly from DBMS, CN, OPPs.