Program to check if all words are covered