Capgemini interview question

OOPS concepts