Create longestRepeatingSubstring.cpp