Paytm interview question

wap for doubly linked list