Infosys Interview Question

the asked me some basics