Create longestcommonprefix.cpp