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