Capgemini interview question

Asked basic OOPS concepts in the technical round