Infosys interview question

Basic programming questions were asked