Canonical interview question

Write a pre-fix operator calculator in front end code.