Explain maximum circular sub array sum

i am not able to understand this algo why do we invert elemnts and add it