Publicis Sapient interview question

Finding common elements in linked list