finish leetcode 46 permutations fix issue #18