1class Solution {2 public int maxSubArray(int[] nums) {3 // Your code here4 return 0;5 }6}
Solve the problem first before reviewing the solution!