Remove nth element from the end from a list.