using System.Collections.Generic;
public static void Main()
Console.WriteLine($"Are the strings isomorphic? [{IsIsomorphic(s,t)}] \n\r");
bool IsIsomorphic(string s, string t)
if (s.Length != t.Length) return false;
Dictionary<char,char> map = new();
for(int i=0; i < s.Length; i++)
if (map.ContainsKey(s[i]) && map.TryGetValue(s[i], out c))
if (!c.Equals(t[i])) return false;
else if (!map.ContainsValue(t[i]))
Console.WriteLine($"map.Key(s[i]) = [{s[i]}] | map.GetValue(s[i]) = [{map.GetValueOrDefault(s[i])}] (...OR...) KEY (s[i]) = [{s[i]}] | VALUE (t[i]) = [{t[i]}] \n\r");