Isomorphic Strings: Adding pattern matching solution.