Largest BST in a BT

TestCAse 1 is not passing. Why?

@yashomar95,
That one testcase that fails is the sample test case itself.
Sample Input
4
60 65 50 70
50 65 60 70
Sample Output
2
Your Output
0