I\'m creating a program for binary search trees and this is a function that I\'m using. As seen in the output, the value of root->rightChild is changing for
root->rightChild