Utility function to check if a linked list with loop is palindrome with given starting point .
static boolean isPalindromeUtil ( Node head , Node loop_start ) { Node ptr = head ; Stack < Integer > s = new Stack < Integer > ( ) ;