Capgemini interview question

Normal basic oops concepts