title: Interview: Find similar elements from two linked lists and return the result as a linked list
body: <p>This question was asked in an interview for my friend. The interviewer asked to find algorithm and code it in Java</p>
  
  <p><strong>Question : Find similar elements from two linked lists and return the result as a linked list</strong></p>
  
  <p>Eg: If linkedlist1 has 1->2->3->4->4->5->6 and linkedlist2 has 1->3->6->4->2->8</p>
  
  <p>Resulted linkedlist 1->2->3->4->6</p>
  
  <p>Thanks</p>