Max circular sum in an array

How do we find maximum circular sum in an array?
OR
How to find maximum sum in a circular array?

Answer with explanation.

MY ATTEMPT:
https://ide.codingblocks.com/#/s/20837

Maximum Circular sum will be Total sum - minimum sum . You just need to calculate the minimum sum in the given array