Capgemini interview question

Write a calculator using java