Cognizant interview question

Oops concepts and basic dbms