Oracle interview question

Java, DSA(Linked List- intersection of 2 list )