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