Common Permutation With Repetition