Help in DP problem LeetCode

Can Some one explain approach for this problem Bottom Up Problem Link :- LeetCode
i am not able to reach conclusion that how to maximize score in bottom up manner