Red Hat interview question

inverse a binary tree in Java