Amazon interview question

Reverse binary tree, classic amazon