Infosys interview question

Aptitude