Infosys interview question

Few technical questions.