Accenture Interview Question

React basics- hooks, optimization technique