Infosys interview question

Instant puzzle solving.