Minimum Coins (CodeEval)