First element of each row is the size of that row
arr = [ [ 3 , 2 , 3 , 5 ] , [ 2 , 7 , - 1 ] , [ 2 , 8 , 10 ] , [ 4 , 5 , 2 , 6 , 1 ] , [ 3 , 2 , 3 , - 2 ] ] NEW_LINE print ( " Maximum ▁ sum ▁ can ▁ be ▁ obtained " , " is ▁ : ▁ " , maxSum ( arr ) ) NEW_LINE