Tuesday's common interview problem: Detecting a looped linked-list
Given a singly-linked list, determine whether it is malformed (contains a loop).
If it does, return a pointer to the first node on the loop (nullptr if it doesn't).
Solve it yourself: https://compiler-explorer.com/z/Mcd5PTjh4
Solution: https://compiler-explorer.com/z/6fx6vzhGr