solve balanced binary tree test