Update consecutive.cpp