Amazon interview question

1. Binary tree print out, reverse polish notation