Accenture interview question

React questions like Hooks concept components