Given a string return all possible permutations that can be made by rearranging the letters in the string using a queue. For example given "abc" return "abc,acb,bac,bca,cab,cba".