solve Baron And Coins