Update longestprefix_inwords.java