Create Detect whether a linked list contains a cycle.cpp