Capgemini interview question

How do you build a calculator?