Function to check if two linked lists are permutations of each other first : reference to head of first linked list second : reference to head of second linked list
def isPermutation ( first , second ) : NEW_LINE