Permutations 2 Leetcode Solution