# I use a double loop in this. Note that I also re-use my "longest word" logic
# from the easy solution to (2).
# See the advanced solution for a shorter way to do this.
# I use a double loop in this. Note that I also re-use my "longest word" logic
# from the easy solution to (2).
# See the advanced solution for a shorter way to do this.