Verily interview question

The problem was implementing a simple calculator