//T: O(N^2*M) where N is the length of the word, M is total no. of words //S: O(N^2*M) where N is the length of the word, M is total no. of words ...