Update longestommonPrefix.cpp