Instructure Interview Question

Write a function to parse reverse Polish notation.