SUMSUMS PROBLEM

I did not get how ouptut is 26 25 and 29 for a given input explaint it a little

The array changes as follows

1 0 4 -> Initial
4 5 1 -> after 1st step
6 5 9 -> after 2nd step
14 15 11 -> after 3rd step
26 25 29 -> after 4th step

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.