Create longest common prefix.java