restore Coin Flipping problem