Infosys Interview Question

related to database ,oops concept