Qualcomm interview question

Remove an item from a double-linked list