Microsoft interview question

How will you implement a simple calculator