//O(n*wordLen*26)