Palindrome Linked List Leetcode Solution Java