Juniper interview question

Reverse linked list leetcode question