Valve Corporation interview question

Write the code for a calculator and they must use these functions.