Amazon interview question

A linked list reversal question