https://hack.codingblocks.com/contests/c/452/1288
https://ide.codingblocks.com/s/33080
Maximum Circular Sum @hb
https://ide.codingblocks.com/s/33445
this is the correct approach for this problem.
Note that you are supposed to take input from the user along with the test cases.