Create Substring counting.cpp