public static void main(String args[]){
        KadaneWrapArray kwa = new KadaneWrapArray();
        int input[] = {12, -2, -6, 5, 9, -7, 3};
        int input1[] = {8, -8, 9, -9, 10, -11, 12};
        System.out.println(kwa.kadaneWrap(input));
        System.out.println(kwa.kadaneWrap(input1));
    }
This method assumes there is at least one positive number in the array.
Otherwise it will break
@param arr
@return
src/com/interview/array/KadaneWrapArray.java