Rivian interview question

Develop an algorithm to reverse a binary tree.