Given the head of a singly linked list, return true if it is a palindrome.
head = [1,2,2,1]
true
head = [1,2]
false