swapTwoIntegers

public void swapIntegers(int[] A, int index1, int index2) {
        // Write your code here
        int temp = A[index1];
        A[index1] = A[index2];
        A[index2] = temp;
    }