Capgemini interview question

How would you build a calculator?