Max. circular subarray sum

my code is working well for custom inputs and other inputs i tried on my own, but the hidden testcase is not passing… i have followed the approach told in the editoria , still the problem persists
https://ide.codingblocks.com/s/50306 - my code to problem

Hey Sonam, check your code for this
input:
1
8
10 -3 -4 7 6 5 -4 -1

your code’s output:
10

but the expected output is:
23