Tripjack interview question

How to check if a string is isomorphic or not?