I’m still not exactly sure why we should remove the head node of the linked list when the right pointer node becomes null when moving the right point forward nth positions.
If the right pointer reaches NULL while moving it n steps forward, it means that the head node should be removed. We return the head's next node.
Any ideas why we remove the head node and not return it instead?