Create longestprefix_inwords.java