Create LongestPrefix.java