NIIT Limited interview question

about coding and basic information