Maximum circular sum

my code is giving correct result for all test case that i can generate by myself, but on submission giving wrong answer on test case #1 BELOW IS LINK TO MY CODE
link: https://ide.codingblocks.com/s/148420