Mental Model
A doubly linked list lets you move forward and backward through nodes. To delete from the end, you remove the last node and update the second last node to be the new end.
Analogy: Imagine a train with cars connected front and back. Removing the last car means disconnecting it and making the second last car the new tail.
head -> 1 ↔ 2 ↔ 3 ↔ 4 ← tail null ← 1 ↔ 2 ↔ 3 ↔ 4 -> null
