Infosys interview question

Oop questions