tricky permutation question.