#include <iostream> #include <set> #include <string> #include <vector> #include <algorithm> using namespace std; bool is_brother(string word1, string word2) { if (word1.size() != word2.size()) return false; if(word1 == word2) return false; sort(word1.begin(), word1.end(...