Amazon interview question

Reverse linked list leetcode problem