What is the grep command will search the f.txt file for lines start with either upper or lower case character w and end with a dot character?

grep '^[wW].*\.$' f.txt