if a string matches an earlier string in the array, swap the 2 strings in the array. when a position in the array has been swapped, it no longer matches anything. using a map, this can be solved making just one pass over the array. more difficult than it looks. 