I am trying to solve an algorithm problem in leetCode(https://leetcode.com/problems/reverse-linked-list/). I made the recursiveList function to solve this by recursion and