Given an array anArray and two indices i and j, exchange the values at these indices.
anArray
i
j
the array whose values are swapped
the first index to be swapped
the second index to be swapped
Given an array
anArrayand two indicesiandj, exchange the values at these indices.