Infosys Interview Question

A puzzle