Coforge interview question

Javascripts Node React