Adobe interview question

Doubly Linked List, Prime Number factors