Virtusa interview question

basic OOP's and SQL question.