Errigal interview question

How to revert binary tree