Detecting cycles challenge solved