Meta Interview Question

Remove the nth node from the end, clone the graph