working to implement recursive traverseWest function
implemented a program that moves up a linked list recursively and uses a callback for each element going down the list