Amazon interview question

Reverse Polish Notation