Infosys interview question

Basic oop conepts and data structure