Cognizant interview question

reactjs components