My suggestion is print what u want to send in kadane and check if its actually going
I think u are getting confused with left,right,n and row variables
Help me out there
checking the video , wait 
This is according to the video
But this approach may not work because que is different
@Kartikkhariwal1
//Convert 2D array to 1D by row
//Clear vector to st
//Add next rowart the row with i as starting row.
apply kadane algorithm on every possible subarray
I expanded just like he did in video
If u want to do otherwise then u have to use
I
Yeah I know but it will not work according to me
You can try urself once u are able to understand what u are sending in kadane