[linked list] write code for remove nth node from end of list