Most of the logic is working. However, the recursion base case is not working.