DSA Key Problems

Inorder Successor in BST

Given a binary search tree and a node in it, return the node with the smallest value greater than the given node's value, or null if none exists.