Infosys Interview Question

Instant puzzle solving.