Create longestCommonPrefix.java