Infosys interview question

Simple basic questions