Pergunta de entrevista da empresa Two Sigma

How would you design a class/methods for reverse Polish notation? (They explained what reverse Polish notation was first, of course)