Question d’entretien chez Yandex

Write a code to reverse a double-linked list.