Peanut Labs interview question

Write a algorithm that evaluates an arithmetic expression such as "5 + 8 / 2 - 3".