add solution for permutation