OIS 2022 - practical Jokes

CMSocial - a social coding app can anyone plz help me to understand what will be the solution of this problem??

Hi! Consider the difference array (the inverse of the prefix sums): if you can make it all zeros, then you’ve won. What is the effect of a move on such array?