Supreme Soft interview question

About hooks in react and state anagements