Word Pattern II

Given a pattern and a string s, determine if s follows the same pattern. Here, pattern is a string of characters, and s is a space-separated sequence of words.

Examples
Input: ["abab","redblueredblue"]
Output: true
Hints

Word Pattern II

Given a pattern and a string s, determine if s follows the same pattern. Here, pattern is a string of characters, and s is a space-separated sequence of words.