Generate All Permutations Leetcode