Create LongestCommonPattern.cpp