Mximum Circular sum array

this program is giving garbage value. please check.