private void swap(int arr[],int a,int b){
        int temp = arr[a];
        arr[a] = arr[b];
        arr[b] = temp;
    }
http://www.geeksforgeeks.org/iterative-quick-sort/
Test case
0,1 or more elements in the array
src/com/interview/sort/IterativeQuickSort.java