Infosys interview question

The puzzle was a difficult one.