Uber interview question

Implement a calculator.