solved [valid binary search tree]