Is_Balanced (Binary Tree) : 1 Testcase

I am not able to clear 1 Testcase.
Please look into the code.

It worked when I gave bp.height = 0 in the base case. Why is this so as according to the lectures , we should pass -1 instead of 0

here is the working piece of code