Infosys Interview Question

not so difficult to mention.