TBO.com interview question

OOPS, DBMS and SQL query