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