Palindrome In Doubly Linked List Leetcode Questions Java