Create longestCommonPrefix