Create removeNthFromEnd

used another function here to reverse a list