Pregunta de entrevista de Meta

Remove the nth node from the end, clone the graph