How do i know if two linked lists are set equal?

if L1 and L2 are linked lists

set equal meaning the set of values of the nodes in L1 is the same as the set of values of the nodes in L2 and order does not matter

i know it hasdo do with traversing the lists