new file:   longestCommonPrefix.cpp