VLEAD interview question

In coding I was asked to reverse a linked list.