Infosys Interview Question

One puzzle