Editorial - Maximum Circular Subarray Sum

I understood how the logic and the code works but i fail to comprehend why it works ? Any hints regarding the proof will help.