Infosys Interview Question

Based on resume and from oops and some program