finished working code with understanding oh how to reverse a linked list
using recursion