Add accepted solution for removing Nth node.