Capgemini Engineering interview question

Oops concepts and its implementation