recursive function to find the Inorder Scuccessor when the right child of node x is null
static Node findInorderRecursive ( Node root , Node x ) { if ( root == null ) return null ; if ( root == x || ( temp = findInorderRecursive ( root . left , x ) ) != null || ( temp = findInorderRecursive ( root . right , x ) ) != null ) { if ( temp != null ) { if ( root . left == temp ) { System . out . print ( " Inorder ▁ Successor ▁ of ▁ " + x . data ) ; System . out . print ( " ▁ is ▁ " + root . data + "NEW_LINE");  return null ; } } return root ; } return null ; }