The Nash problem of arcs and its solution