PolicyBazaar interview question

DSA - convert sorted array to BST