POJ#1256 permutation of string. Rank:8556