code: private static void swap(final int[] arr, final int a, final int b) {
          final int c = arr[a];
          arr[a] = arr[b];
          arr[b] = c;
      }
docs: Swaps two entries of the given int array.
  
  @param arr array
  @param a   first position
  @param b   second position