Pregunta de entrevista de Infosys

Question on reactjs and javascript