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
function isPermutation ( first , second ) {