Can we use kadanes algo

if we se kadanes out time complexity would be O(1). So kadanes approach is better. right?

how you use kadanes algorithm here??

tell me your approach