Ericsson interview question

Programming a calculator using the stack