Infosys interview question

some technical questions about programing