Infosys interview question

Based on resume and from oops and some program