public class Solution {
public int maxSubArray(int[] A) {
// Start typing your Java solution below
// DO NOT write main() function
int max = Integer.MIN_VALUE;
if(A.length==0) return 0;
int B[] = new int[A.length];
for(int i=0;i