Create noTwoConsecutive.cpp