Cookoff Feb 2020 codechef problem name is max subsequence

I have applied kadanes algo after reversing the array in each step yet I am unable to solve it it shows tle and wrong answer plz provide the soln and explaination for this problem…
Link is https://www.codechef.com/COOK115B/problems/CYCLCSUM