remove nth node from the end of linklist