Infosys interview question

Programming knowledge