public int maxSubArrayBadBad(int[] A) {
		// Start typing your Java solution below
		// DO NOT write main() function

		int max = Integer.MIN_VALUE;
		for (int i = 0; i < A.length; i++) {
			for (int j = 0; j < A.length; j++) {
				int sum = sum(A, i, j);
				if (sum > max) {
					max = sum;
				}
			}
		}

		return max;
	}