add solution for problem: Permutations