Generate all possible permutations of a given string.
Given an array of distinct integers, return all the possible permutations in any order