cpp interview removedupes quicksort