one more binary tree problem