Infosys interview question

Basic question about my subject