Microsoft interview question

design a calculator