Check if two linked lists are identical or same.