Pregunta de entrevista de Publicis Sapient

Diff between class and functional component