public static void main(String[] args) {
        int [] test = {1,3,8,2,10,2,3,4,6,9,878,-1};
        QuickSort q = new QuickSort();
        for(int i : q.sort(test)) {
            System.out.print(i+ " ");
        }
    }