Solved Problem10252 - Common Permutation