bool isIsomorphic(string s, string t) {
int c1=0,c2=0;
string f1=convert(s,c1),f2=convert(t,c2);
if(c1==c2&&f1==f2) return true;
else return false;
}
string convert(string s,int &count){
map<char,int> mp;
string ans;
for(auto c:s)
if(mp.find(c)==mp.end()) mp[c]=count++;
for(auto c:s)
ans+=to_string(mp[c]);
return ans;
}