Errigal Interview Question

How to revert binary tree