Infosys interview question

Basic knowledge on the concepts