Help in DP problem LeetCode

Can Some one explain approach for this problem Bottom Up Problem Link :https://leetcode.com/problems/stone-game-ii/
i am not able to reach conclusion that how to maximize score in bottom up manner