Google interview question

Filter values from a doubly linked list.