Update longestword.cpp