Infosys interview question

based on oops concepts and database management system