Sponsored
Use these hints if you're stuck. Try solving on your own first.
Use recursion. If root.val <= V, you split root.right into two halves, then join it's left half back on root.right.
Solve with full IDE support and test cases