#include <string> class Solution { public: void setinto( set<string> &tem, string& str, int n){ if (n == str.size() - 1) { tem.insert(str); return; } for (int i = n; i < str.size(); i++) { wswap(str[n], str[i]); setinto( tem, str, n + 1); wswap(str[n], str[i]); } } void wswap(char& a,...