what is the error
Largest BST in A BT
ur if block
if(leftMinMax.isBst == false || rightMinMax.isBst == false || leftMinMax.max >= root.data || rightMinMax.min<=root.data)
if any from above 4 condition is true
it means it is not a bst
hope this will help u
pls rate my so that i can improve myslef