Infosys interview question

Technical stuff in different views