Amazon interview question

How to determine whether two linked lists intersect