Update minCoin.cpp