Talentica interview question

Write a calculator program.