Capco interview question

Hooks, Class components vs Functional components