Block interview question

Building a calculator