Virtusa interview question

Basic oops concepts SQL queries