Solution for largest BST in binay tree

In the solution provided for question , when input :-(5 (preorder)70 65 50 80 90 (inorder)50 65 80 70 90) , the output for the size of/no of nodes in largest BST is 5 . This is clearly wrong since it is saying that whole tree is a BST but that is not the case.

whole binary tree is not BST
80 is present on the left of 70 which is wrong for bst

hence complete tree is not bst

i think you are saying the same think

where it is mention
i have checked all the testcase there is not such testcase