code: private void reverseAfter(int i) {
  		int start = i+1;
  		int end = n-1;
  		while (start < end) {
  			swap(index,start,end);
  			start++;
  			end--;
  		}
  	}
docs: Reverse the index elements to the right of the specified index.