HCLTech interview question

Basic to intermittent level react questions