Infosys interview question

Basics questions ans some real time