currentNode
as the root of the tree.currentNode
is not null, check if it has a left child.currentNode
to currentNode.right
.currentNode
's right child.currentNode
's right child to its left child.currentNode
's left child to null.currentNode
to currentNode.right
.