ITC Infotech Interview Question

DBMS, SQL, Riddle, OOPs concept