Pergunta de entrevista da empresa Alarm.com

Implement an algorithm that removes a node from a doubly linked list, given the node to be deleted.