NIIT Limited interview question

Related to current project and from Angular