public static void main(String args[]){
        ConvertAnArrayIntoDecreaseIncreaseFashion can = new ConvertAnArrayIntoDecreaseIncreaseFashion();
        int arr[] = {0,6,9,13,10,-1,8,2,4,14,-5};
        can.convert(arr);
        for(int i=0; i < arr.length; i++){
            System.out.print(arr[i] + " ");
        }
        System.out.println();
        int arr1[] = {0,6,9,13,10,-1,8,2,4,14,-5};
        can.convert1(arr1);
        for(int i=0; i < arr1.length; i++){
            System.out.print(arr1[i] + " ");
        }
    }
Sort the array first.
Then swap every adjacent element to get final result
@param arr
src/com/interview/array/ConvertAnArrayIntoDecreaseIncreaseFashion.java