Capgemini Interview Question

How would you build a calculator?