Detecting Cycles moderate challenge solved