Finish the permutation problem