please help me in this DP problem (Editorial is not Given)
https://codeforces.com/problemset/problem/180/E