Valve Corporation interview question

Write the code for a calculator