LinkedIn interview question

Reverse binary tree