AMD interview question

reverse a linked list was asked