Pregunta de entrevista de Cognizant

Functional and class component in react