Linked List Problem In Leetcode Two Pointers