Infosys Interview Question

Gave a a puzzle to solve.