Note that x is a node in the BST. Find the next larger element in BST . i.e next-larger(x).
Psedocode :