Kinaxis interview question

Reverse link list with recursion.