LinkedIn interview question

Design a calculator