Add solution for UVA problem 10684 The Jackpot

dynamic programming. dp[i] = Max(bet[i], bet[i] + dp[i - 1])