Clarification on this statement in the editorial

Hi,

Can you clarify a bit more as to what this means and how this statement is true as given in the editorial?

“Wrapping of contributing elements implies non wrapping of non contributing elements, so find out the sum of non contributing elements and subtract this sum from the total sum.”

hi @agrawaladitya192
where is this statement mentioned?? do u find difficulty in writing code??

This statement is mentioned in the editorial of the respective problem. I am not able to understand how the implication is built.

hi @agrawaladitya192
i suggest to dry run the code on the sample input, it will give u better insight

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.