You are given the root of a binary search tree (BST) and a value val to insert. Return the root of the BST after the insertion. It is guaranteed that val does not already exist in the tree.
Several valid BSTs can hold the same values. This problem expects the standard insertion: walk down from the root, going left when val is smaller than the current node and right when it is larger, and attach the new node as a leaf at the first empty child you reach. No existing node moves.