ptr= ptr->next; ptr=listReversal(ptr);for(;ptr;ptr = ptr->next, head = head->next)if(ptr->val != head->val)returnfalse;returntrue; } };