so I was trying to implement a function to detect a cycle in a linked list, and basically, I was struggling until I realized I just had to switch 2 conditions.
This c