Given a singly linked list of integers, write a function in java that returns true if the given list is palindrome, else returns false