Infosys interview question

not as such