Word Subsets Leetcode Question