Infosys Interview Question

Technical Question related to programming language (very basic)