Update longestCommonPrefix.java