function that prints the inorder successor of a target node . next will point the last tracked node , which will be the answer .
def inorderSuccessor ( root , target_node ) : NEW_LINE INDENT global next NEW_LINE DEDENT