check balanced tree
Coin puzzle