Given a pattern and a string s (space-separated words), return true if s follows the same pattern (bijection between letters and words).
Example 1:
Input: abba
dog cat cat dog
Output: trueExample 2:
Input: abba
dog cat cat fish
Output: falseInput format: Line 1 = pattern, line 2 = words.