K Balanced Binary Tree Problem