Capgemini interview question

Simple basic question from oops and dsta structure