How can i create BST from given array?

how can i construct BST from given array?
this is ryt??
private Node construct(int arr[], int lo , int hi) {
if(lo>hi) {
return null;
}

	int mid=(lo+hi)/2;
	Node nn=new Node(arr[mid]);
	nn.left=construct(arr,lo,mid-1);
	nn.right=construct(arr,mid+1,hi);
	
	return nn;
	
	
}

@Vipin_coder,

it just wants that you insert the nodes in order they are coming according to whether they should be placed in left or right subtree based on data value.

I have attached the code for node insertion in the tree that should be followed. Please refer to it:

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.