Create longestCommonPrefix.cpp