Update removeNthFromEnd