How to solve "New reform" problem form codeforces?

I am trying to solve NEW REFORM problem from codeforces but couldn’t solve the problem. Can anyone please explain in details how to sole this problem. Please don’t point me to codeforces official tutorial for this problem as I have already looked at it.