Infosys interview question

basics questions