Cisco interview question

Code to add element in doubly linked list