Two strings are isomorphic if the characters of s can be replaced (via a consistent one-to-one mapping) to obtain t. Every occurrence of a character must map to the same character, and no two characters may map to the same one.
Input
st (same length)Output: true or false.
egg add
true
e→a, g→d.
foo bar
false
o would need to map to both a and r.
badc baba
false
b and d would both map to b.
Run your code against the sample tests, or Submit to run the full suite.