Solvative interview question

To design a calculator usememo , hooks