Coforge interview question

oop's concept