Capgemini interview question

Basic concept of Oops