Given an integer array nums where the elements are sorted in ascending order, convert it to a height-balanced binary search tree.
A height-balanced binary tree is a binary tree in which the depth of the two subtrees of every node never differs by more than one.
unc sortedArrayToBST(nums []int) *TreeNode {
if len(nums) == 0 {
return nil
}
root := len(nums)/2
Root := &TreeNode{
Val: nums[root],
Left: sortedArrayToBST(nums[:root]),
Right: sortedArrayToBST(nums[root + 1:]),
}
return Root
}