Two Sigma interview question

Reverse a linked list style leetcode question