HCLTech interview question

Basics in react and node