problem:https://leetcode.com/problems/word-pattern/ tips: 同一个pattern对应不同的word,另一个是同一个word对应不同的pattern。