POJ#2038 Search by next_permutation. Rank:7564