Solvative interview question

react hooks