JavaScript Program to Convert Sorted Array to BST
Given a sorted array, convert it into a binary search tree (BST). A binary search tree is a binary tree where the value of each node is larger than the values in its left subtree and smaller than the values in its right subtree. Example: Input: sorted array= [2, 4, 7, 9, 10]Output: Binary Search Tre