Visa Inc. interview question

Doubly linked List in Python