Two Sigma Interview Question

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