You are given a list of strings words and a string pattern. Return the words that match the pattern. You may return the answer in any order.
A word matches the pattern if there is a permutation of letters p such that replacing every letter x in the pattern with p(x) turns the pattern into the word.
In other words, the letters must correspond one to one: every letter of the pattern maps to exactly one letter of the word, and no two pattern letters map to the same word letter.