Pergunta de entrevista da empresa Infosys

Basic react js question and javascript