Pergunta de entrevista da empresa Instructure

Write a function to parse reverse Polish notation.