#include #include string switchchars(string topermute, int x, int y) { string newstring = topermute; newstring[x] = newstring[y]; newstring[y] = topermute[x]; //avoids temp variable return newstring; } void permute(string topermute, int place) { if(place == topermute.length() - 1) { cout<