Codeforces div 3 contest 634

Plz provide soln of problem E1 and e2 with explaination and code as well…of three blocks palindrome… without using dp…

@S19LPPP0202 refer to this

https://codeforces.com/blog/entry/75993

I was not able to understand the solution from there that is why I asked for help regarding explain and code …plz provide the same