using System.Collections;
public void Isomorphic(string str1,string str2)
Hashtable tabl1=new Hashtable();
Hashtable tabl2=new Hashtable();
char[] ch=str1.ToCharArray();
char[] ch1=str2.ToCharArray();
for(int i=0;i<ch.Length;i++)
if(!tabl1.ContainsKey(ch[i]))
Console.WriteLine(ch[i]);
for(int i=0;i<ch1.Length;i++)
if(!tabl2.ContainsKey(ch1[i]))
Console.WriteLine(ch1[i]);
if(tabl1.Count==tabl2.Count)
Console.WriteLine("Yes");
public static void Main()
Program p = new Program();