Round 1: Coins Game (Changed to a size O(N) bottom-up DP solution - runs successfully on all valid inputs).