Amazon interview question

Reverse and single linked list