public static void main(String args[]){
        int arr[] = {4,5,10,21,18,23,7,8,19,34,38};
        int arr1[] = {4,5,6,12,11,15};
        int arr2[] = {4,5,6,10,11,15};
        MinimumSortedWhichSortsEntireArray msw = new MinimumSortedWhichSortsEntireArray();
        System.out.println(msw.minLength(arr1));
    }
http://www.geeksforgeeks.org/minimum-length-unsorted-subarray-sorting-which-makes-the-complete-array-sorted/
src/com/interview/array/MinimumSortedWhichSortsEntireArray.java