https://knightzone.studio/2015/01/15/2679/uva%ef%bc%9a10252%ef%bc%8dcommon-permutation/
#UVa:10252-Common Permutation