Cognizant interview question

Related to basic angular stuff