This problem brilliantly connects array index-chasing to Floyd's cycle detection, showing how a linked list technique applies to arrays.
Enable JavaScript for the full StreamPrep guide.