private void sortRemaining(int src[],int result[],boolean used[],int pos){
        int pos1 = pos;
        for(int i=0; i < src.length; i++){
            if(!used[i]){
                result[pos1] = src[i];
                pos1++;
            }
        }
        Arrays.sort(result,pos,result.length);
    }
e.g if src array is {1,2,5,7,8} and dest is {5,8,1,9,8}
permute src in such a way that it is greater than dest but diff is minimal
so here we will have {5,8,2,1,7}
src/com/interview/number/PermutationLargerThanGivenArray.java