Cognizant interview question

Based on javascript and framework like react