Create NthElementInSeries.cpp